package com.jy.common;



public class StringUtil {


    public static boolean isNullOrWhiteSpace(String val){
        if(val == null || val.trim().length() == 0)
            return true;
        for(int i = 0; i < val.length(); i++){
            char c = val.charAt(i);
            if(!Character.isWhitespace(c))
                return false;
        }
        return false;
    }

    public static boolean isNullOrEmpty(String val){
        if(val == null || val.length() == 0)
            return true;
        return false;
    }

}
